package com.jinzhi.common.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: mcf
 * @CreateTime: 2024/06/12
 * @Description: 消息枚举
 */
@AllArgsConstructor
@Getter
public enum MessagesEnum {

    /**
     * 系统消息
     */

    MESSAGE_101 ("您发布的用人需求已接单了，请立即查看",101,"SMS_468385736"),

    MESSAGE_102 ("简历审核已通过，请开始接单吧!",102,null),

    MESSAGE_103 ("简历审核未通过，",103,null) ,

    MESSAGE_104 ("简历正在审核中，请耐心等待",104,null) ,

    MESSAGE_105 ("住宿审核已通过，可以开始入住了！",105,null),

    MESSAGE_106 ("住宿审核已拒绝，拒绝原因",106,null),

    MESSAGE_107 ("您发布的用人需求审核已通过，请立即查看",107,null),

    MESSAGE_108 ("您发布的用人需求审核已拒绝，拒绝原因为",108,null),

    MESSAGE_109 ("您有一条合同待签署，点击去签署！",109,"SMS_468480016"),

    MESSAGE_110 ("您有一条新的需求订单,请立即查看",110,"SMS_468415727"), //用户端

    MESSAGE_111 ("您有一条新的服务订单,请立即查看",111,"SMS_468285772"),//阿姨端

    MESSAGE_112 ("您购买的商品即将到期，请尽快使用",112,"SMS_468380766"),


    /**
     * 订单消息
     */

    MESSAGE_201 ("您的邀约面试信息已发送，请耐心等待！",201,null),

    MESSAGE_202 ("您的邀约面试信息已同意，请查看！",202,"SMS_468395772"),

    MESSAGE_203 ("您的邀约面试信息已拒绝，请查看！",203,null),

    MESSAGE_204 ("顾客向您发起了面试邀约！",204,"SMS_468440705"),

    MESSAGE_205 ("您的需求订单已转让，请查看！",205,null),

    MESSAGE_206 ("您的订单已转让，请查看！",206,"SMS_468395771"),

    MESSAGE_207 ("您的订单已分配阿姨，请及时查看！",207,null),

    MESSAGE_208 ("已为您分配一个服务订单，请及时查看！",208,"SMS_468395771"),

    MESSAGE_209 ("您的面试结果通过",209,null),

    MESSAGE_211 ("您的面试结果拒绝",211,null),

    MESSAGE_210("您发布面试信息阿姨的面试结果",210,null),

    MESSAGE_212 ("系统向您分配一条新的服务订单，请查看！",212,"SMS_468395771");
    
    

    private final String msg;

    private final Integer num;

    private final String code;


    public static String findByNum(Integer num) {
        for (MessagesEnum messagesEnum : MessagesEnum.values()) {
            if (messagesEnum.getNum()==num) {
                return messagesEnum.getCode();
            }
        }
        return null;
    }


}
